package jscinttools.scint.models;

import java.lang.Math;
import java.io.Serializable;

/**
 *  Description of the Class
 *
 *@author     marc-antoine
 *@created    16 février 2011
 */
public class CalcKr implements Serializable
{
	private double kr_MHz = 0;


	/**
	 *  Constructor for the CalcKr object
	 */
	public CalcKr() { }


	/**
	 *  Constructor for the CalcKr object
	 *
	 *@param  k1_us   Description of the Parameter
	 *@param  k2_us   Description of the Parameter
	 *@param  d_K     Description of the Parameter
	 *@param  temp_K  Description of the Parameter
	 */
	public CalcKr(double k1_us, double k2_us, double d_K, double temp_K)
	{
		kr_MHz = (1.0 / k1_us) + (1.0 / k2_us) * Math.exp(-1.0 * d_K / temp_K);
	}


	/**
	 *  Gets the kr_MHz attribute of the CalcKr object
	 *
	 *@return    The kr_MHz value
	 */
	public double getKr_MHz()
	{
		return kr_MHz;
	}


	/**
	 *  Sets the kr_MHz attribute of the CalcKr object
	 *
	 *@param  kr_MHz  The new kr_MHz value
	 */
	public void setKr_MHz(double kr_MHz)
	{
		this.kr_MHz = kr_MHz;
	}
}

